package cn.zzqayy.steward.examination;

import cn.zzqayy.steward.ResultJson;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.netflix.eureka.EnableEurekaClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * 业务应用
 * @author zzqayy
 * @date 2020-03-28
 */
@EnableEurekaClient
@RestController
@SpringBootApplication
public class StewardExaminationApplication {

    public static void main(String[] args) {
        SpringApplication.run(StewardExaminationApplication.class, args);
    }

    @Value("${server.port}")
    private Integer serverPort;

    @PostMapping("/hello")
    public ResultJson hello(){
        ResultJson success = ResultJson.SUCCESS(serverPort);
        return success;
    }

}
